package org.ielts.service;

import org.ielts.domain.base.Student;
import org.ielts.domain.log.SchoolLog;
import org.ielts.repository.SchoolLogRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class SchoolLogService {

	@Autowired
	SchoolLogRepository schoolLogRepository;

	@Transactional
	public Iterable findByStudent(String studentId) {
		Iterable students = schoolLogRepository.findByStudent(studentId);

		return students;
	}

}
